using System;
using System.Threading.Tasks;
using JlPay.Sdk.Core;
using JlPay.Sdk.Models.Openmerch.Query;

namespace JlPay.Sdk.Services.Openmerch.Query
{
    /// <summary>
    /// 商户基本信息查询服务
    /// </summary>
    public class MerchBaseInfoQueryService : BaseService
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="config">配置对象</param>
        public MerchBaseInfoQueryService(Config config) : base(config)
        {
        }

        /// <summary>
        /// 查询商户基本信息
        /// </summary>
        /// <param name="request">请求对象</param>
        /// <returns>响应对象</returns>
        public async Task<MerchBaseInfoQueryResponse> QueryMerchBaseInfoAsync(MerchBaseInfoQueryRequest request)
        {
            return await PostAsync<MerchBaseInfoQueryRequest, MerchBaseInfoQueryResponse>(request, MerchBaseInfoQueryRequest.API_URL);
        }
    }
} 